package peppa.george.book.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Book {
      private Long id;
      private Long writer_id;
      private String book;
      private String net_address;
      @JsonFormat(pattern="yyyy-MM-dd", timezone="GTM+8")
      private Date createTime;
      private String createPerson;
      private Long user_id;

      public Long getId() {
            return id;
      }

      public void setId(Long id) {
            this.id = id;
      }

      public Long getWriter_id() {
            return writer_id;
      }

      public void setWriter_id(Long writer_id) {
            this.writer_id = writer_id;
      }

      public String getBook() {
            return book;
      }

      public void setBook(String book) {
            this.book = book;
      }

      public String getNet_address() {
            return net_address;
      }

      public void setNet_address(String net_address) {
            this.net_address = net_address;
      }

      public Date getCreateTime() {
            return createTime;
      }

      public void setCreateTime(Date createTime) {
            this.createTime = createTime;
      }

      public String getCreatePerson() {
            return createPerson;
      }

      public void setCreatePerson(String createPerson) {
            this.createPerson = createPerson;
      }

      public Long getUser_id() {
            return user_id;
      }

      public void setUser_id(Long user_id) {
            this.user_id = user_id;
      }
}
